package cc.customer.web.bigEpResoure;

import cc.customer.bigEmport.damain.BigInten;
import cc.customer.bigEmport.services.BigInternServices;
import cc.customer.common.domain.QueryRequest;
import cc.customer.web.sys.controller.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Map;

@Controller
public class BigIntenController extends BaseController {

    @Autowired
    private BigInternServices bigInternServices;

    @RequestMapping(value = "bigInten/index")
    public String  getInternIndex(){
        return "customer/BigEpResource/bigIntern/bigInternIndex";
    }
    /**加载意向导入得记录**/
    @RequestMapping(value = "bigInten/list")
    @ResponseBody
    public Map<String,Object> getAllList(BigInten inten, QueryRequest request){
       return  this.selectByPageNumSize(request,()->this.bigInternServices.getAllBigIntern(inten));
    }

}
